
import os
import tempfile

"""
The temp folder structure is as follows:
    temp folder (e.g. /tmp)
        dexen
            archive
            nodes
"""

_ROOT_DIR_NAME = "dexen"
TEMP_ROOT_DIR = os.path.join(tempfile.gettempdir(), _ROOT_DIR_NAME)

#===============================================================================
# ARCHIVE SERVER CONSTANTS
#===============================================================================
ARCHIVE_PORT = 8000
DIR_SIZE = 1000
INDS_DIR_NAME = "inds"
MASTER_DIR_NAME = "master"
ARCHIVE_ROOT_DIR = os.path.join(TEMP_ROOT_DIR, "archive")

#===============================================================================
# NODE CONSTANTS
#===============================================================================
NODES_ROOT_DIR = os.path.join(TEMP_ROOT_DIR, "nodes") 
